package com.luli.aop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * 陆离
 * 2024/10/10 20:39:19
 */
public class MyAround implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation)
            throws Throwable {
        System.out.println("环绕前...");
        Object proceed = invocation.proceed();
        System.out.println("环绕后...");
        return proceed;
    }
}

